package com.gillion.grule.client.core;

import java.io.Serializable;

public class GroovyShellConfig implements Serializable {
    private String shellName;
    private String functionName;
    private String scriptText;
    private String result;

    public void setShellName(String shellName) {
        this.shellName = shellName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public void setScriptText(String scriptText) {
        this.scriptText = scriptText;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof GroovyShellConfig)) return false;
        GroovyShellConfig other = (GroovyShellConfig) o;
        if (!other.canEqual(this)) return false;
        Object this$shellName = getShellName(), other$shellName = other.getShellName();
        if ((this$shellName == null) ? (other$shellName != null) : !this$shellName.equals(other$shellName))
            return false;
        Object this$functionName = getFunctionName(), other$functionName = other.getFunctionName();
        if ((this$functionName == null) ? (other$functionName != null) : !this$functionName.equals(other$functionName))
            return false;
        Object this$scriptText = getScriptText(), other$scriptText = other.getScriptText();
        if ((this$scriptText == null) ? (other$scriptText != null) : !this$scriptText.equals(other$scriptText))
            return false;
        Object this$result = getResult(), other$result = other.getResult();
        return !((this$result == null) ? (other$result != null) : !this$result.equals(other$result));
    }

    protected boolean canEqual(Object other) {
        return other instanceof GroovyShellConfig;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $shellName = getShellName();
        result = result * 59 + (($shellName == null) ? 43 : $shellName.hashCode());
        Object $functionName = getFunctionName();
        result = result * 59 + (($functionName == null) ? 43 : $functionName.hashCode());
        Object $scriptText = getScriptText();
        result = result * 59 + (($scriptText == null) ? 43 : $scriptText.hashCode());
        Object $result = getResult();
        return result * 59 + (($result == null) ? 43 : $result.hashCode());
    }

    public String toString() {
        return "GroovyShellConfig(shellName=" + getShellName() + ", functionName=" + getFunctionName() + ", scriptText=" + getScriptText() + ", result=" + getResult() + ")";
    }

    public String getShellName() {
        return this.shellName;
    }

    public String getFunctionName() {
        return this.functionName;
    }

    public String getScriptText() {
        return this.scriptText;
    }

    public String getResult() {
        return this.result;
    }
}
